import { createApp } from 'vue';
import { createPinia } from 'pinia';
import 'echarts';
import { vLoading } from 'element-plus';
import App from './app.vue';
import router from './router';
import KgjGlobalComponents from '@/components';
import KgjCrud from '@crud/index';
import 'virtual:svg-icons-register'; // 引入svg icon注册脚本
import 'element-plus/theme-chalk/index.css';
// import 'element-plus/theme-chalk/el-message.css';
import '@/assets/styles/index.scss';
const app = createApp(App);

app.use(createPinia());
app.use(router);
app.use(KgjGlobalComponents);
app.use(KgjCrud);
app.directive('loading', vLoading);
app.mount('#app');
